package com.dynamixsoftware.printershare;

import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.ContentResolver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.content.DialogInterface.OnClickListener;
import android.content.DialogInterface.OnDismissListener;
import android.content.Intent;
import android.content.res.Resources;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Picture;
import android.net.Uri;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.os.ParcelFileDescriptor;
import android.provider.Browser;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnFocusChangeListener;
import android.view.View.OnKeyListener;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.webkit.HttpAuthHandler;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebSettings.LayoutAlgorithm;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
import java.io.FileInputStream;
import java.util.ArrayList;

public class ActivityWeb
  extends ActivityRoot
{
  static final int DIALOG_BOOKMARKS;
  public static volatile Picture pp;
  private Button buttonGo;
  private DialogBookmarks dialogBookmarks = null;
  private EditText enterUri;
  Thread lt;
  private WebView webView;
  
  private void goUrl()
  {
    String str = getEnterUri().getText().toString();
    if (str.indexOf("://") < 0) {
      str = "http://" + str;
    }
    if (str.length() > 0) {
      getWebView().loadUrl(str);
    }
    try
    {
      View localView = getCurrentFocus();
      if (localView != null)
      {
        InputMethodManager localInputMethodManager = (InputMethodManager)getSystemService("input_method");
        if (localInputMethodManager != null) {
          localInputMethodManager.hideSoftInputFromWindow(localView.getWindowToken(), 2);
        }
      }
      return;
    }
    catch (Exception localException)
    {
      localException.printStackTrace();
      App.reportThrowable(localException);
    }
  }
  
  public Button getButtonGo()
  {
    return this.buttonGo;
  }
  
  public EditText getEnterUri()
  {
    return this.enterUri;
  }
  
  public WebView getWebView()
  {
    return this.webView;
  }
  
  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    this.dialogBookmarks = new DialogBookmarks(this);
    setContentView(2130903072);
    setTitle(2131099695);
    setButtonGo((Button)findViewById(2131230828));
    setEnterUri((EditText)findViewById(2131230826));
    setWebView((WebView)findViewById(2131230769));
    ((ImageButton)findViewById(2131230827)).setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        ActivityWeb.this.showDialog(0);
      }
    });
    getEnterUri().setOnFocusChangeListener(new View.OnFocusChangeListener()
    {
      public void onFocusChange(View paramAnonymousView, boolean paramAnonymousBoolean)
      {
        if (paramAnonymousBoolean)
        {
          ActivityWeb.this.webView.clearFocus();
          ActivityWeb.this.webView.onWindowFocusChanged(true);
        }
      }
    });
    this.webView.setWebChromeClient(new WebChromeClient()
    {
      public void onProgressChanged(WebView paramAnonymousWebView, final int paramAnonymousInt)
      {
        if (paramAnonymousInt == 100)
        {
          ActivityWeb.this.runOnUiThread(new Runnable()
          {
            public void run()
            {
              ActivityWeb.this.hideProgress();
            }
          });
          return;
        }
        if (paramAnonymousInt == 0)
        {
          ActivityWeb.this.runOnUiThread(new Runnable()
          {
            public void run()
            {
              ActivityWeb.this.showProgress(ActivityWeb.this.getResources().getString(2131099757));
            }
          });
          return;
        }
        ActivityWeb.this.runOnUiThread(new Runnable()
        {
          public void run()
          {
            ActivityWeb localActivityWeb = ActivityWeb.this;
            String str = ActivityWeb.this.getResources().getString(2131099758);
            Object[] arrayOfObject = new Object[1];
            arrayOfObject[0] = (paramAnonymousInt + "%");
            localActivityWeb.showProgress(String.format(str, arrayOfObject));
          }
        });
      }
      
      public void onReceivedTitle(WebView paramAnonymousWebView, String paramAnonymousString)
      {
        ActivityWeb.this.setTitle(ActivityWeb.this.getResources().getString(2131099695) + " - " + paramAnonymousString);
      }
    });
    this.webView.setWebViewClient(new WebViewClient()
    {
      public void onReceivedHttpAuthRequest(WebView paramAnonymousWebView, final HttpAuthHandler paramAnonymousHttpAuthHandler, String paramAnonymousString1, String paramAnonymousString2)
      {
        boolean bool = paramAnonymousHttpAuthHandler.useHttpAuthUsernamePassword();
        String str1 = null;
        String str2 = null;
        if (bool)
        {
          String[] arrayOfString = paramAnonymousWebView.getHttpAuthUsernamePassword(paramAnonymousString1, paramAnonymousString2);
          str1 = null;
          str2 = null;
          if (arrayOfString != null)
          {
            int i = arrayOfString.length;
            str1 = null;
            str2 = null;
            if (i == 2)
            {
              str2 = arrayOfString[0];
              str1 = arrayOfString[1];
            }
          }
        }
        if ((str2 != null) && (str1 != null))
        {
          paramAnonymousHttpAuthHandler.proceed(str2, str1);
          return;
        }
        final View localView = LayoutInflater.from(ActivityWeb.this).inflate(2130903045, null);
        new AlertDialog.Builder(ActivityWeb.this).setIcon(17301543).setTitle(2131099841).setView(localView).setPositiveButton(2131099703, new DialogInterface.OnClickListener()
        {
          public void onClick(DialogInterface paramAnonymous2DialogInterface, int paramAnonymous2Int)
          {
            String str1 = ((EditText)localView.findViewById(2131230739)).getText().toString();
            String str2 = ((EditText)localView.findViewById(2131230741)).getText().toString();
            if ((str1 != null) && (str2 != null)) {
              paramAnonymousHttpAuthHandler.proceed(str1, str2);
            }
          }
        }).setNegativeButton(2131099707, new DialogInterface.OnClickListener()
        {
          public void onClick(DialogInterface paramAnonymous2DialogInterface, int paramAnonymous2Int)
          {
            paramAnonymousHttpAuthHandler.cancel();
          }
        }).create().show();
      }
      
      public boolean shouldOverrideUrlLoading(WebView paramAnonymousWebView, String paramAnonymousString)
      {
        paramAnonymousWebView.loadUrl(paramAnonymousString);
        return true;
      }
    });
    this.webView.setHorizontalScrollBarEnabled(true);
    this.webView.getSettings().setJavaScriptEnabled(true);
    this.webView.getSettings().setBlockNetworkImage(false);
    this.webView.getSettings().setLoadsImagesAutomatically(true);
    this.webView.getSettings().setSupportMultipleWindows(false);
    this.webView.getSettings().setBuiltInZoomControls(true);
    this.webView.getSettings().setSupportZoom(true);
    this.webView.getSettings().setUseWideViewPort(true);
    this.webView.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL);
    getButtonGo().setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        ActivityWeb.this.goUrl();
      }
    });
    getEnterUri().setOnKeyListener(new View.OnKeyListener()
    {
      public boolean onKey(View paramAnonymousView, int paramAnonymousInt, KeyEvent paramAnonymousKeyEvent)
      {
        if ((paramAnonymousKeyEvent.getAction() == 1) && (paramAnonymousInt == 66))
        {
          ActivityWeb.this.goUrl();
          return true;
        }
        return false;
      }
    });
    ((Button)findViewById(2131230726)).setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        Picture localPicture = ActivityWeb.this.getWebView().capturePicture();
        if (localPicture != null) {}
        try
        {
          ActivityWeb.pp = localPicture;
          Intent localIntent = new Intent("web");
          localIntent.setClass(ActivityWeb.this, ActivityPrintWeb.class);
          ActivityWeb.this.startActivityForResult(localIntent, 10);
          return;
        }
        catch (Exception localException)
        {
          ActivityWeb.pp = null;
          localException.printStackTrace();
          App.reportThrowable(localException);
        }
      }
    });
    Intent localIntent = getIntent();
    String str6;
    Object localObject;
    String str7;
    if ("android.intent.action.SEND".equals(localIntent.getAction()))
    {
      str6 = localIntent.getType();
      Bundle localBundle = localIntent.getExtras();
      if (localBundle == null) {
        break label488;
      }
      localObject = localBundle.get("android.intent.extra.TEXT");
      if (localObject == null) {
        break label494;
      }
      str7 = localObject.toString();
      label338:
      if (str7 != null)
      {
        findViewById(2131230825).setVisibility(8);
        if (!"text/plain".equals(str6)) {
          break label633;
        }
        if ((!str7.startsWith("http:")) && (!str7.startsWith("https:"))) {
          break label500;
        }
        getWebView().loadUrl(str7);
      }
    }
    label397:
    final Uri localUri;
    String str1;
    String str2;
    if ("android.intent.action.VIEW".equals(localIntent.getAction()))
    {
      localUri = localIntent.getData();
      str1 = localIntent.getType();
      str2 = getContentResolver().getType(localUri);
      if (str1 == null) {
        break label652;
      }
    }
    label652:
    for (String str3 = str1;; str3 = str2)
    {
      if (localUri != null)
      {
        findViewById(2131230825).setVisibility(8);
        if (!"text/plain".equals(str3)) {
          break label659;
        }
        this.lt = new Thread()
        {
          public void run()
          {
            try
            {
              ActivityWeb.this.runOnUiThread(new Runnable()
              {
                public void run()
                {
                  ActivityWeb.this.showProgress(ActivityWeb.this.getResources().getString(2131099757));
                }
              });
              Thread.sleep(500L);
              FileInputStream localFileInputStream = new FileInputStream(ActivityWeb.this.getContentResolver().openFileDescriptor(localUri, "r").getFileDescriptor());
              byte[] arrayOfByte = new byte[localFileInputStream.available()];
              localFileInputStream.read(arrayOfByte);
              localFileInputStream.close();
              ActivityWeb.this.getWebView().loadDataWithBaseURL(null, "<html><head><meta name=\"viewport\" content=\"width=650, target-densitydpi=medium-dpi\"></head><body><pre style=\"font-size:12pt; white-space:pre-wrap\">" + new String(arrayOfByte, "UTF-8").replaceAll("\\<", "&lt;").replaceAll("\\>", "&gt;") + "</pre></body></html>", "text/html", "UTF-8", null);
              ActivityWeb.this.runOnUiThread(new Runnable()
              {
                public void run()
                {
                  ActivityWeb.this.hideProgress();
                }
              });
              localActivityWeb = ActivityWeb.this;
            }
            catch (Exception localException)
            {
              for (;;)
              {
                localException.printStackTrace();
                App.reportThrowable(localException);
                ActivityWeb.this.setResult(0);
                ActivityWeb.this.finish();
                ActivityWeb.this.runOnUiThread(new Runnable()
                {
                  public void run()
                  {
                    ActivityWeb.this.hideProgress();
                  }
                });
                ActivityWeb localActivityWeb = ActivityWeb.this;
              }
            }
            finally
            {
              ActivityWeb.this.runOnUiThread(new Runnable()
              {
                public void run()
                {
                  ActivityWeb.this.hideProgress();
                }
              });
              ActivityWeb.this.lt = null;
            }
            localActivityWeb.lt = null;
          }
        };
        this.lt.start();
      }
      return;
      label488:
      localObject = null;
      break;
      label494:
      str7 = null;
      break label338;
      label500:
      if (str7.startsWith("file:"))
      {
        if (Integer.parseInt(Build.VERSION.SDK) < 8) {}
        for (String str8 = "content://com.android.htmlfileprovider" + Uri.parse(str7).getEncodedPath();; str8 = str7)
        {
          getWebView().loadUrl(str8);
          break;
        }
      }
      getWebView().loadDataWithBaseURL(null, "<html><head><meta name=\"viewport\" content=\"width=650, target-densitydpi=medium-dpi\"></head><body><pre style=\"font-size:12pt; white-space:pre-wrap\">" + str7.replaceAll("\\<", "&lt;").replaceAll("\\>", "&gt;") + "</pre></body></html>", "text/html", "UTF-8", null);
      break label397;
      label633:
      getWebView().loadDataWithBaseURL(null, str7, str6, "UTF-8", null);
      break label397;
    }
    label659:
    if ("file".equals(localUri.getScheme()))
    {
      if (Integer.parseInt(Build.VERSION.SDK) < 8) {}
      for (String str5 = "content://com.android.htmlfileprovider" + localUri.getEncodedPath() + "?" + str3;; str5 = localUri.toString())
      {
        getWebView().loadUrl(str5);
        return;
      }
    }
    final String str4 = localUri.toString();
    if ("gmail-ls".equals(localUri.getHost()))
    {
      getWebView().getSettings().setLoadsImagesAutomatically(false);
      if (!"text/html".equals(str3))
      {
        showProgress(getResources().getString(2131099757));
        new Thread()
        {
          /* Error */
          public void run()
          {
            // Byte code:
            //   0: aload_0
            //   1: getfield 19	com/dynamixsoftware/printershare/ActivityWeb$9:val$ur	Ljava/lang/String;
            //   4: ldc 27
            //   6: ldc 29
            //   8: invokevirtual 35	java/lang/String:replace	(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
            //   11: astore_2
            //   12: aload_0
            //   13: getfield 17	com/dynamixsoftware/printershare/ActivityWeb$9:this$0	Lcom/dynamixsoftware/printershare/ActivityWeb;
            //   16: invokevirtual 39	com/dynamixsoftware/printershare/ActivityWeb:getContentResolver	()Landroid/content/ContentResolver;
            //   19: new 41	java/lang/StringBuilder
            //   22: dup
            //   23: invokespecial 42	java/lang/StringBuilder:<init>	()V
            //   26: aload_2
            //   27: invokevirtual 46	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
            //   30: ldc 48
            //   32: invokevirtual 46	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
            //   35: invokevirtual 52	java/lang/StringBuilder:toString	()Ljava/lang/String;
            //   38: invokestatic 58	android/net/Uri:parse	(Ljava/lang/String;)Landroid/net/Uri;
            //   41: iconst_1
            //   42: anewarray 31	java/lang/String
            //   45: dup
            //   46: iconst_0
            //   47: ldc 60
            //   49: aastore
            //   50: aconst_null
            //   51: aconst_null
            //   52: aconst_null
            //   53: invokevirtual 66	android/content/ContentResolver:query	(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
            //   56: astore_3
            //   57: iconst_0
            //   58: istore 4
            //   60: aload_3
            //   61: ifnull +44 -> 105
            //   64: iconst_0
            //   65: istore 5
            //   67: iload 5
            //   69: sipush 1000
            //   72: if_icmpge +27 -> 99
            //   75: aload_3
            //   76: invokeinterface 72 1 0
            //   81: pop
            //   82: aload_3
            //   83: iconst_0
            //   84: invokeinterface 76 2 0
            //   89: istore 4
            //   91: iload 4
            //   93: sipush 192
            //   96: if_icmpeq +44 -> 140
            //   99: aload_3
            //   100: invokeinterface 79 1 0
            //   105: iload 4
            //   107: sipush 200
            //   110: if_icmpne +51 -> 161
            //   113: aload_0
            //   114: getfield 17	com/dynamixsoftware/printershare/ActivityWeb$9:this$0	Lcom/dynamixsoftware/printershare/ActivityWeb;
            //   117: invokevirtual 83	com/dynamixsoftware/printershare/ActivityWeb:getWebView	()Landroid/webkit/WebView;
            //   120: aload_2
            //   121: invokevirtual 89	android/webkit/WebView:loadUrl	(Ljava/lang/String;)V
            //   124: aload_0
            //   125: getfield 17	com/dynamixsoftware/printershare/ActivityWeb$9:this$0	Lcom/dynamixsoftware/printershare/ActivityWeb;
            //   128: new 91	com/dynamixsoftware/printershare/ActivityWeb$9$1
            //   131: dup
            //   132: aload_0
            //   133: invokespecial 94	com/dynamixsoftware/printershare/ActivityWeb$9$1:<init>	(Lcom/dynamixsoftware/printershare/ActivityWeb$9;)V
            //   136: invokevirtual 98	com/dynamixsoftware/printershare/ActivityWeb:runOnUiThread	(Ljava/lang/Runnable;)V
            //   139: return
            //   140: ldc2_w 99
            //   143: invokestatic 104	java/lang/Thread:sleep	(J)V
            //   146: aload_3
            //   147: invokeinterface 107 1 0
            //   152: ifeq -53 -> 99
            //   155: iinc 5 1
            //   158: goto -91 -> 67
            //   161: aload_0
            //   162: getfield 17	com/dynamixsoftware/printershare/ActivityWeb$9:this$0	Lcom/dynamixsoftware/printershare/ActivityWeb;
            //   165: iconst_0
            //   166: invokevirtual 111	com/dynamixsoftware/printershare/ActivityWeb:setResult	(I)V
            //   169: aload_0
            //   170: getfield 17	com/dynamixsoftware/printershare/ActivityWeb$9:this$0	Lcom/dynamixsoftware/printershare/ActivityWeb;
            //   173: invokevirtual 114	com/dynamixsoftware/printershare/ActivityWeb:finish	()V
            //   176: goto -52 -> 124
            //   179: astore_1
            //   180: aload_0
            //   181: getfield 17	com/dynamixsoftware/printershare/ActivityWeb$9:this$0	Lcom/dynamixsoftware/printershare/ActivityWeb;
            //   184: new 91	com/dynamixsoftware/printershare/ActivityWeb$9$1
            //   187: dup
            //   188: aload_0
            //   189: invokespecial 94	com/dynamixsoftware/printershare/ActivityWeb$9$1:<init>	(Lcom/dynamixsoftware/printershare/ActivityWeb$9;)V
            //   192: invokevirtual 98	com/dynamixsoftware/printershare/ActivityWeb:runOnUiThread	(Ljava/lang/Runnable;)V
            //   195: aload_1
            //   196: athrow
            //   197: astore 7
            //   199: goto -53 -> 146
            // Local variable table:
            //   start	length	slot	name	signature
            //   0	202	0	this	9
            //   179	17	1	localObject	Object
            //   11	110	2	str	String
            //   56	91	3	localCursor	Cursor
            //   58	53	4	i	int
            //   65	91	5	j	int
            //   197	1	7	localException	Exception
            // Exception table:
            //   from	to	target	type
            //   0	57	179	finally
            //   75	91	179	finally
            //   99	105	179	finally
            //   113	124	179	finally
            //   140	146	179	finally
            //   146	155	179	finally
            //   161	176	179	finally
            //   140	146	197	java/lang/Exception
          }
        }.start();
        return;
      }
      getWebView().loadUrl(str4);
      return;
    }
    getWebView().loadUrl(str4);
  }
  
  protected Dialog onCreateDialog(int paramInt)
  {
    if (paramInt == 0) {
      return this.dialogBookmarks.createMenu(getResources().getString(2131099833));
    }
    return super.onCreateDialog(paramInt);
  }
  
  protected void onPrepareDialog(int paramInt, Dialog paramDialog)
  {
    if (paramInt == 0) {
      this.dialogBookmarks.refreshMenu();
    }
  }
  
  public void setButtonGo(Button paramButton)
  {
    this.buttonGo = paramButton;
  }
  
  public void setEnterUri(EditText paramEditText)
  {
    this.enterUri = paramEditText;
  }
  
  public void setWebView(WebView paramWebView)
  {
    this.webView = paramWebView;
  }
  
  protected class BookmarksMenuAdapter
    extends BaseAdapter
  {
    LayoutInflater factory;
    Context mContext;
    private ArrayList<ActivityWeb.BookmarksMenuItem> mItems = new ArrayList();
    
    public BookmarksMenuAdapter(Context paramContext)
    {
      this.factory = LayoutInflater.from(paramContext);
      this.mContext = paramContext;
    }
    
    public void addItem(ActivityWeb.BookmarksMenuItem paramBookmarksMenuItem)
    {
      this.mItems.add(paramBookmarksMenuItem);
    }
    
    public void addItem(String paramString1, String paramString2, Bitmap paramBitmap)
    {
      this.mItems.add(new ActivityWeb.BookmarksMenuItem(ActivityWeb.this, paramString1, paramString2, paramBitmap));
    }
    
    public int getCount()
    {
      return this.mItems.size();
    }
    
    public Object getItem(int paramInt)
    {
      if (paramInt < this.mItems.size()) {
        return this.mItems.get(paramInt);
      }
      return null;
    }
    
    public long getItemId(int paramInt)
    {
      return 0L;
    }
    
    public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
    {
      ActivityWeb.BookmarksMenuItem localBookmarksMenuItem = (ActivityWeb.BookmarksMenuItem)getItem(paramInt);
      View localView = this.factory.inflate(2130903052, null);
      ((TextView)localView.findViewById(2131230767)).setText(localBookmarksMenuItem.getTitle());
      ((TextView)localView.findViewById(2131230768)).setText(localBookmarksMenuItem.getUrl());
      ((ImageView)localView.findViewById(2131230766)).setImageBitmap(localBookmarksMenuItem.getIcon());
      return localView;
    }
    
    public void removeAll()
    {
      this.mItems.clear();
    }
  }
  
  protected class BookmarksMenuItem
  {
    private Bitmap icon;
    private String title;
    private String url;
    
    public BookmarksMenuItem(String paramString1, String paramString2, Bitmap paramBitmap)
    {
      this.title = paramString1;
      this.url = paramString2;
      this.icon = paramBitmap;
    }
    
    public Bitmap getIcon()
    {
      return this.icon;
    }
    
    public String getTitle()
    {
      return this.title;
    }
    
    public String getUrl()
    {
      return this.url;
    }
  }
  
  public class DialogBookmarks
    implements DialogInterface.OnCancelListener, DialogInterface.OnDismissListener
  {
    private ActivityWeb.BookmarksMenuAdapter menuAdapter;
    ActivityWeb parentActivity;
    
    public DialogBookmarks(ActivityWeb paramActivityWeb)
    {
      this.parentActivity = paramActivityWeb;
    }
    
    public Dialog createMenu(String paramString)
    {
      this.menuAdapter = new ActivityWeb.BookmarksMenuAdapter(ActivityWeb.this, this.parentActivity);
      AlertDialog.Builder localBuilder = new AlertDialog.Builder(this.parentActivity);
      localBuilder.setTitle(paramString);
      localBuilder.setAdapter(this.menuAdapter, new DialogInterface.OnClickListener()
      {
        public void onClick(DialogInterface paramAnonymousDialogInterface, int paramAnonymousInt)
        {
          ActivityWeb.this.getEnterUri().setText(((ActivityWeb.BookmarksMenuItem)ActivityWeb.DialogBookmarks.this.menuAdapter.getItem(paramAnonymousInt)).getUrl());
          ActivityWeb.this.goUrl();
        }
      });
      localBuilder.setInverseBackgroundForced(true);
      AlertDialog localAlertDialog = localBuilder.create();
      localAlertDialog.setOnCancelListener(this);
      localAlertDialog.setOnDismissListener(this);
      return localAlertDialog;
    }
    
    public void onCancel(DialogInterface paramDialogInterface) {}
    
    public void onDismiss(DialogInterface paramDialogInterface) {}
    
    public void refreshMenu()
    {
      Cursor localCursor = this.parentActivity.getContentResolver().query(Browser.BOOKMARKS_URI, new String[] { "title", "url", "favicon" }, "bookmark=1", null, "created ASC");
      this.menuAdapter.removeAll();
      if (localCursor != null)
      {
        while (localCursor.moveToNext())
        {
          byte[] arrayOfByte = localCursor.getBlob(2);
          String str = localCursor.getString(1);
          if ((str != null) && (str.length() != 0)) {
            if (arrayOfByte != null) {
              this.menuAdapter.addItem(localCursor.getString(0), str, BitmapFactory.decodeByteArray(arrayOfByte, 0, arrayOfByte.length));
            } else {
              this.menuAdapter.addItem(localCursor.getString(0), str, null);
            }
          }
        }
        localCursor.close();
      }
    }
  }
}


/* Location:           C:\Users\Admin\Desktop\Decompiler\JAD\jd-gui-0.3.6.windows\classes_dex2jar.jar
 * Qualified Name:     com.dynamixsoftware.printershare.ActivityWeb
 * JD-Core Version:    0.7.0.1
 */